
{extend name="index/index" /}
{block name="content"}


<div class=" admin-content">

        <div class="daohang">
            <ul>
                <li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs"> 首页 </li>
                <li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">帮助中心<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
                <li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">奖金管理<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
                <li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">产品管理<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>


            </ul>




        </div>




        <div class="admin-biaogelist" style="">

            <div class="listbiaoti am-cf">

                <ul class="am-icon-flag on"> 分类管理</ul>
                {switch name="$type" }
                {case value="0"}
                <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <b >科目分类</b></dl>
                {/case}
                {case value="1"}
                <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="{:url('admin/category/index', ['id' => $russ['parent_id'],'type' => $type-1])}">科目分类</a>  > <b>地区分类</b></dl>
                {/case}
                {case value="2"}
                <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > 科目分类  > <a href="{:url('admin/category/index', ['id' => $russ['parent_id'],'type' => $type-1])}">地区分类</a> > <b>章分类</b></dl>
                {/case}
                {case value="3"}
                <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > 科目分类  > 地区分类 ><a href="{:url('admin/category/index', ['id' =>$russ['parent_id'],'type' => $type-1])}">章分类</a>  > <b >节分类</b></dl>
                {/case}
                <default />
                <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <b >科目分类</b></dl>
                {/switch}


                <dl>
                    <a  href="{:url('admin/category/category_add_a', ['id' => $pid,'type' => $type])}" type="button" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" > 添加</a>


                </dl>


            </div>




            <form class="am-form am-g" >
                <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
                    <thead>
                    <tr class="am-success">
                        <!--<th class="table-check"><input type="checkbox" /></th>-->
                        <!--<th class="table-id">排序</th>-->
                        <th class="table-id">ID</th>
                        <th class="table-title">标题</th>
                        <th class="table-type">类别</th>
                        <!--<th class="table-author am-hide-sm-only">上架/下架 <i class="am-icon-check am-text-warning"></i> <i class="am-icon-close am-text-primary"></i></th>-->
                        <th class="table-date am-hide-sm-only">修改日期</th>
                        <th width="163px" class="table-set">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="rus" id="vo"}
                    <tr>
                        <!--<td><input type="checkbox" /></td>-->
                        <!--<td><input type="text" class="am-form-field am-radius am-input-sm"/></td>-->
                        <td>{$vo.node_id}</td>
                        <td><a href="#">{$vo.type_name}</a></td>
                        <td>
                            {switch name="$vo.type" }
                            {case value="1"}
                            科目
                            {/case}
                            {case value="2"}
                            地区
                            {/case}
                            {case value="3"}
                            章
                            {/case}
                            {case value="4"}
                            节
                            {/case}
                            {/switch}
                        </td>
                        <!--<td class="am-hide-sm-only"><i class="am-icon-check am-text-warning"></i></td>-->
                        <td class="am-hide-sm-only">{$vo.time}</td>
                        <td><div class="am-btn-toolbar">
                            <div class="am-btn-group am-btn-group-xs">
                                {if condition="$vo['type'] eq 4 "}
                                    {else /} <a href="{:url('admin/category/index', ['id' => $vo['node_id'],'type'=>$vo['type']])}" class="am-btn am-btn-default am-btn-xs am-text-success am-round"><span class="am-icon-search"></span> </a>
                                {/if}

                                <a href="{:url('admin/category/category_edit_a', ['id' => $vo['node_id']])}" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round"><span class="am-icon-pencil-square-o"></span></a>
                                <!--<button class="am-btn am-btn-default am-btn-xs am-text-warning  am-round"><span class="am-icon-copy"></span></button>-->
                                <a data-toggle="modal"  class="am-btn am-btn-default am-btn-xs am-text-danger am-round" data-target="#myModal{$i}"><span class="am-icon-trash-o"></span></a>
                                <!--<a  href="{:url('admin/category/category_del_a', ['id' => $vo['node_id']])}" class="am-btn am-btn-default am-btn-xs am-text-danger am-round"><span class="am-icon-trash-o"></span></a>-->
                            </div>
                        </div></td>
                    </tr>
                            <!-- Modal -->
                            <div class="modal fade" id="myModal{$i}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
                                <div class="modal-dialog" role="document" style="margin-top:80px">
                                    <div class="modal-content">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                            <h4 class="modal-title" id="myModalLabel">消息提醒</h4>
                                        </div>
                                        <div class="modal-body">
                                            你确定要删除?
                                        </div>
                                        <div class="modal-footer">
                                            <button type="button" class="btn btn-default"><a href="{:url('admin/category/category_del_a', ['id' => $vo['node_id']])}">确定</a></button>
                                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                        </div>
                                    </div>
                                </div>
                            </div>

                    {/volist}
                    </tbody>
                </table>

            </form>

            </div>
    <style>
        .modal-content{z-index:3000;}
        .modal-backdrop{z-index:-100;}
    </style>
            {/block}


